/***
 * 九九乘法表实现
 * */
document.write("<h3>九九乘法表</h3>");
document.write("<table style='border-collapse:collapse;border: 1px solid #cc9eff;'>");
for (let i = 1; i < 9; i++) {
    document.write("<tr>");
    for (let j = 1; j <= i; j++) {
        document.write("<td style='border: 1px solid #cc9eff;width: 61px; height: 25px; text-align: center; padding: 0px;'>" + j + "*" + i + "=" + (j * i) + "</td>");
    }
    document.write("</tr>");
}
document.write("</table>");
// let tds = document.querySelectorAll("td");
// for (let i = 0; i < tds.length; i++) {
// tds[i].style.cssText = "border: 1px solid #cc9eff; width: 61px; height: 25px; text-align: center; padding: 0px;";
// }
// document.querySelector("table").style.cssText = "border: 1px solid #cc9eff; border-collapse:collapse;";
console.log(document.querySelectorAll("td"));